package com.zzh.api.fallback;

import com.zzh.api.base.response.BaseResponse;
import com.zzh.api.base.service.BaseApiService;
import com.zzh.api.feign.MemberServiceFeign;
import com.zzh.api.member.entity.MemberEntity;
import com.zzh.api.member.service.IMemberService;
import com.zzh.api.order.service.IOrderService;
import org.springframework.stereotype.Component;

/**
 * @author zihong.zheng
 * @version 1.0
 * @date 2019/2/10
 * @time 22:04
 * @description
 */
@Component
public class MemberServiceFallBack extends BaseApiService implements MemberServiceFeign {
    public MemberEntity getMember(String name) {
        return null;
    }

    public BaseResponse orderToMemberInfo() {
        return null;
    }

    public BaseResponse getUserInfo() {
        return returnError("系统繁忙，请稍后重试");
    }
}
